'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/api/admin/user/findPager', controller.findPage.queryAllList);
  router.post('/api/admin/user/queryAllList', controller.findPage.queryAllList);
  router.post('/api/admin/user/save', controller.findPage.addItem);
};
